<extend name="Public@Public/base" />


<block name="css">
<link href="__ROOT__/Public/default/Static/css/log.css" rel="stylesheet">
</block>

<block name="main_content">


<div class="filter">
    <div class="row frow">
      <form action="" method="GET" name="form" class="myforms" id="to_search">
      {$saerchForm}
    <div class="col-md-2  col-xs-12 col-sm-2">
      <div class="btn-group">
        <a type="submit" class="btn btn-info" id="get_search">条件查询</a> 
        <a type="button" href="{:U($PUB_NODE)}" class="btn btn-primary" id="get_search">所有数据</a>  
      </div>
      
    </div>
      </form>

    </div>
</div>

<div class="sinfo alert alert-warning alert-dismissible fade in">
  共<span>{$all_count} </span> 条记录
</div>




<form id="form_list" name="form_list" action="" method="get">
<table class="table  datalist  table-hover lists-log">
  <thead>
    <tr>
      <th style="font-size:12px;">
        <input type="checkbox" class="select_all" name="select_all">
      </th>
      <if condition="$list_img_show neq false">
        <th>图片</th>
      </if>
      <foreach name="title_lists" item="row">
        <th>
          {$row}
          <if condition="$_GET['order_by'] neq $key.'|desc' and $_GET['order_by'] neq $key.'|asc'">
            <a href="{:add_url_parameter('order_by',$key.'|desc')}">
              <i class="iconfont" title="通过{$row}排序">&#xe63b;</i>
            </a>

          <elseif condition="$_GET['order_by'] eq $key.'|desc'"/>
            <a href="{:add_url_parameter('order_by',$key.'|asc')}">
              <i class="iconfont" title="通过{$row}升序排序">&#xe65c;</i>
            </a>


          <elseif condition="$_GET['order_by'] eq $key.'|asc'"/>
            <a href="{:add_url_parameter('order_by',$key.'|desc')}">
              <i class="iconfont" title="已经通过{$row}降序排列">&#xe66e;</i>
            </a>

          </if>

        </th>
      </foreach>
    </tr>
  </thead>
  <tbody>
    <foreach name="list_data" item="row" key='key'>
    <tr>
      <td style="font-size:12px;">
        <input type="checkbox" name="select_id[]" value="{$row['id']}">
      </td>
      <if condition="$list_img_show neq false">
        <td><img src="{$row[$list_img_show]}" width=42 height=42 style="border:1px solid #ccc;padding:2px;"></td>
      </if>
      <foreach name="title_lists" item="row1" key='key1'>
        <td>
          {$row[$key1]|get_model_value=$THIS_MODEL['model_name'],$key1}
        </td>
      </foreach>
    </tr>
    </foreach>
  </tbody>
  <thead>
    <tr>
      <td style="font-size:12px;">
      </td>
      <if condition="$list_img_show neq false">
        <th>图片</th>
      </if>
      <foreach name="title_lists" item="row">
        <th>
          {$row}
        </th>
      </foreach>
    </tr>
  </thead>
  </table>
  </form>


    <div class="page" style="height: auto;">{$page}&nbsp;&nbsp;
    </div>


  </div>

</block>
